import { onMounted, ref } from 'vue'

export const useTest = () => {
    const testValue = ref('aaa')
    onMounted(() => {
        console.log('useTest mounted')
    })

    const onChange = () => {
        testValue.value = 'bbb'
        console.info('useTest onChange')
    }

    return {
        testValue,
        onChange
    }
}
